package co.fitstart.weapp.api.dao;

import java.util.List;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;

import co.fitstart.entity.courseware.movement.Movement;

/**
 * 
 * @author hayan_xiao
 *
 */
@Dao("hibernate")
public interface MovementDao {

    /**
     * 
     * @return
     */
    @Query("FROM Movement WHERE disabled = false")
    public List<Movement> list();

    /**
     * 
     * @param name
     * @return
     */
    @Query("FROM Movement WHERE disabled = false AND name LIKE :name")
    public List<Movement> list(@Variable("name") String name);
}
